/* Copyright 2017, 2018, 2019, 2020 Gabriel Czernikier
 *
 * This file is part of Côtehaus.
 * Côtehaus is free software: you can redistribute it and/or modify
 * it under the terms of one of the following:
 * 1. The same dual license as that of Côtehaus itself, of which individual licenses are
 * the MIT License and the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 2. The MIT License.
 * 3. The GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * Côtehaus is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * MIT License and the GNU General Public License for more details.
 * You should have received a copy of the MIT License and the GNU General Public License
 * along with Côtehaus.  If not, see <https://opensource.org/licenses/MIT> and <http://www.gnu.org/licenses/>.
 */
#ifndef __CH_PROTO_ID_H
#define __CH_PROTO_ID_H

#include <stdbool.h>
#include <stdlib.h>
#include "lgwseq.h"
#include "types.h"

struct proto_id_st {
  struct str_id_st *shorty_idx;
  struct type_id_st *return_type_idx;
  struct type_list_st *parameters_list;
  unsigned long long idx;
  struct list_head proto_id_list;
};
 
struct proto_id_st *add_proto_id(struct type_id_st *return_type_idx, struct type_list_st *parameters_list);
void build_oproto_id();
void pack_oproto_id();

#endif
